package kr.or.kosta.otr.persistence.message;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;

import kr.or.kosta.otr.vo.MessageVO;

public interface MessageDao {
	void writeMessage (MessageVO vo)throws SQLException;
	void deleteMessage(int messageId)throws SQLException;
	MessageVO getOneMessage(int messageId)throws SQLException;
	int getMessageCount(String userId)throws SQLException;
	ArrayList<MessageVO> getAllMessage(String userId)throws SQLException;
	void checkMessage(HashMap<String, Object> map)throws SQLException;
	ArrayList<MessageVO> getAllSendMessage(String userId)throws SQLException;
	ArrayList<MessageVO> getAllMessagePage(HashMap<String, Object> map)throws SQLException;
	int getAllMessageTotal(String userId)throws SQLException;
}
